﻿

var TestObject = function () {

    //module pattern return public methods to keep private methods private
    var publicmethods = {
        Load: function () {
            //do something
        },
        TestMessage: function () {
            testmessage();

        },

    };

    //private methods
    var testmessage = function(){
        alert('Test Object Script was loaded');
    };

    //return public methods
    return publicmethods;
};